<template>
  <!-- <RouterView /> -->
  <router-view v-slot="{ Component }">
    <keep-alive :include="caches">
      <component :is="Component" />
    </keep-alive>
  </router-view>
</template>

<script setup lang="ts">
import { RouterLink, RouterView } from 'vue-router'
import useRouteCache from './hooks/useRouteCache'
const { caches, addCache } = useRouteCache()

// <!-- 将列表页组件名称添加到需要缓存名单中
addCache(['list'])
</script>

<style scoped></style>
